package extended

import "jvmgo/ch05/instructions/base"
import "jvmgo/ch05/rtda"

// 无条件跳转(4字节索引)
type GOTO_W struct {
    offset int
}

func (self *GOTO_W) FetchOperands(reader *base.BytecodeReader) {
    self.offset = int(reader.ReadInt32())
}
func (self *GOTO_W) Execute(frame *rtda.Frame) {
    base.Branch(frame, self.offset)
}
